<form id="config-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="panel panel-default panel-intro">
        <div class="panel-heading">
            <ul class="nav nav-tabs nav-group">
                <li class="active"><a href="#yilianyun" data-toggle="tab">易联云</a></li>
            </ul>
        </div>

        <div class="panel-body">
            <div id="myTabContent" class="tab-content">
                {foreach $addon.config as $item}
                {if $item.name=='yilianyun'}
                <div class="tab-pane fade active in" id="yilianyun">
                    <table class="table table-striped table-config">
                        <tbody>
                        <tr>
                            <td width="15%">应用ID</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[yilianyun][client_id]" value="{$item.value.client_id|default=''}" class="form-control" data-rule="" data-tip="应用ID（client_id）"/>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>应用密钥</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[yilianyun][client_secret]" value="{$item.value.client_secret|default=''}" class="form-control" data-rule="" data-tip="应用密钥（client_secret）"/>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>调用凭证</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <input type="text" name="row[yilianyun][access_token]" value="{$item.value.access_token|default=''}" class="form-control" data-rule="" data-tip="自有型应用,无失效时间,建议数据存储"/>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>开放平台平台公钥</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <textarea name="row[yilianyun][rsa_public_key]" class="form-control" rows="5" cols="50">{$item.value.rsa_public_key|default=''}</textarea>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>开放平台应用公匙</td>
                            <td>
                                <div class="row">
                                    <div class="col-sm-8 col-xs-12">
                                        <textarea name="row[yilianyun][aes_encryption_key]" class="form-control" rows="5" cols="50">{$item.value.aes_encryption_key|default=''}</textarea>
                                    </div>
                                    <div class="col-sm-4"></div>
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                {/if}
                {/foreach}
                <div class="form-group layer-footer">
                    <label class="control-label col-xs-12 col-sm-2"></label>
                    <div class="col-xs-12 col-sm-8">
                        <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</form>

